package com.gec.zhs.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 工作流实例流转历史记录
 * @TableName flowinstancetransitionhistory
 */
@TableName(value ="flowinstancetransitionhistory")
@Data
public class Flowinstancetransitionhistory implements Serializable {
    /**
     * 主键Id
     */
    @TableId
    private String id;

    /**
     * 实例Id
     */
    private String instanceid;

    /**
     * 开始节点Id
     */
    private String fromnodeid;

    /**
     * 开始节点类型
     */
    private Integer fromnodetype;

    /**
     * 开始节点名称
     */
    private String fromnodename;

    /**
     * 结束节点Id
     */
    private String tonodeid;

    /**
     * 结束节点类型
     */
    private Integer tonodetype;

    /**
     * 结束节点名称
     */
    private String tonodename;

    /**
     * 转化状态
     */
    private Integer transitionsate;

    /**
     * 是否结束
     */
    private Integer isfinish;

    /**
     * 转化时间
     */
    private Date createdate;

    /**
     * 操作人Id
     */
    private String createuserid;

    /**
     * 操作人名称
     */
    private String createusername;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Flowinstancetransitionhistory other = (Flowinstancetransitionhistory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getInstanceid() == null ? other.getInstanceid() == null : this.getInstanceid().equals(other.getInstanceid()))
            && (this.getFromnodeid() == null ? other.getFromnodeid() == null : this.getFromnodeid().equals(other.getFromnodeid()))
            && (this.getFromnodetype() == null ? other.getFromnodetype() == null : this.getFromnodetype().equals(other.getFromnodetype()))
            && (this.getFromnodename() == null ? other.getFromnodename() == null : this.getFromnodename().equals(other.getFromnodename()))
            && (this.getTonodeid() == null ? other.getTonodeid() == null : this.getTonodeid().equals(other.getTonodeid()))
            && (this.getTonodetype() == null ? other.getTonodetype() == null : this.getTonodetype().equals(other.getTonodetype()))
            && (this.getTonodename() == null ? other.getTonodename() == null : this.getTonodename().equals(other.getTonodename()))
            && (this.getTransitionsate() == null ? other.getTransitionsate() == null : this.getTransitionsate().equals(other.getTransitionsate()))
            && (this.getIsfinish() == null ? other.getIsfinish() == null : this.getIsfinish().equals(other.getIsfinish()))
            && (this.getCreatedate() == null ? other.getCreatedate() == null : this.getCreatedate().equals(other.getCreatedate()))
            && (this.getCreateuserid() == null ? other.getCreateuserid() == null : this.getCreateuserid().equals(other.getCreateuserid()))
            && (this.getCreateusername() == null ? other.getCreateusername() == null : this.getCreateusername().equals(other.getCreateusername()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getInstanceid() == null) ? 0 : getInstanceid().hashCode());
        result = prime * result + ((getFromnodeid() == null) ? 0 : getFromnodeid().hashCode());
        result = prime * result + ((getFromnodetype() == null) ? 0 : getFromnodetype().hashCode());
        result = prime * result + ((getFromnodename() == null) ? 0 : getFromnodename().hashCode());
        result = prime * result + ((getTonodeid() == null) ? 0 : getTonodeid().hashCode());
        result = prime * result + ((getTonodetype() == null) ? 0 : getTonodetype().hashCode());
        result = prime * result + ((getTonodename() == null) ? 0 : getTonodename().hashCode());
        result = prime * result + ((getTransitionsate() == null) ? 0 : getTransitionsate().hashCode());
        result = prime * result + ((getIsfinish() == null) ? 0 : getIsfinish().hashCode());
        result = prime * result + ((getCreatedate() == null) ? 0 : getCreatedate().hashCode());
        result = prime * result + ((getCreateuserid() == null) ? 0 : getCreateuserid().hashCode());
        result = prime * result + ((getCreateusername() == null) ? 0 : getCreateusername().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", instanceid=").append(instanceid);
        sb.append(", fromnodeid=").append(fromnodeid);
        sb.append(", fromnodetype=").append(fromnodetype);
        sb.append(", fromnodename=").append(fromnodename);
        sb.append(", tonodeid=").append(tonodeid);
        sb.append(", tonodetype=").append(tonodetype);
        sb.append(", tonodename=").append(tonodename);
        sb.append(", transitionsate=").append(transitionsate);
        sb.append(", isfinish=").append(isfinish);
        sb.append(", createdate=").append(createdate);
        sb.append(", createuserid=").append(createuserid);
        sb.append(", createusername=").append(createusername);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}